package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import com.atguigu.educenter.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author 徐超
 * @Create 2024/12/22 21:39
 */
@FeignClient(name = "service-ucenter",fallback = CommentFileDegradeFeignClient.class)
@Component
public interface commentClient {
    //根据token获取用户信息
//    @GetMapping("/educenter/member/getMemberInfo")
//    public R getMemberInfo(HttpServletRequest request);

    //根据用户id查询用户信息
    @PostMapping("/educenter/member/getMemberInfoById/{memberId}")
    public UcenterMember getMemberInfoById(@PathVariable("memberId") String memberId);
}
